import request from '@/utils/request'

// 查询携程订单列表
export function listXcOrder(query) {
  return request({
    url: '/xiecheng/xcOrder/list',
    method: 'get',
    params: query
  })
}

// 查询携程订单详细
export function getXcOrder(orderNo) {
  return request({
    url: '/xiecheng/xcOrder/' + orderNo,
    method: 'get'
  })
}

// 新增携程订单
export function addXcOrder(data) {
  return request({
    url: '/xiecheng/xcOrder',
    method: 'post',
    data: data
  })
}

// 修改携程订单
export function updateXcOrder(data) {
  return request({
    url: '/xiecheng/xcOrder',
    method: 'put',
    data: data
  })
}

// 删除携程订单
export function delXcOrder(orderNo) {
  return request({
    url: '/xiecheng/xcOrder/' + orderNo,
    method: 'delete'
  })
}

// 导出携程订单
export function exportXcOrder(query) {
  return request({
    url: '/xiecheng/xcOrder/export',
    method: 'get',
    params: query
  })
}